package com.woniuxy.service;

import com.woniuxy.entity.Car;
import com.woniuxy.entity.CarType;
import com.woniuxy.vo.CarVO;

import java.util.List;
import java.util.Map;

public interface CarService {
    //条件分页
    List<CarVO> selectCarByExample(Map<String, Object> map) throws Exception;

    //统计总条数
    int countCarByExample(Map<String, Object> map) throws Exception;

    //查询所有款式
    List<CarType> selectAllCarType() throws Exception;

    //更新房车信息
    int updateCar(Car car) throws Exception;

    //删除
    int deleteCar(Integer carId) throws Exception;
    //新增返回主键
    int insertCar(Car car) throws Exception;
    //非空新增
    int insertCarById(Car car) throws Exception;
}
